package com.sjq.model.response;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.sjq.model.entity.Paper;
import com.sjq.model.entity.PaperBase;
import com.sjq.model.entity.User;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * @author: sjq
 * @create: 2021-12-08
 **/
@ApiModel("用户详情参数列表")
@JsonInclude(JsonInclude.Include.NON_EMPTY)
@Data
@Accessors(chain = true)
public class UserResponse{


    /**
     * 用户基本信息
     */
    @ApiModelProperty("用户基本信息")
    private User basicUserInformation;

    /**
     * 用户角色
     */
    @ApiModelProperty("用户角色")
    private List<String> userRole;

    /**
     * 用户发表的文章
     */
    @ApiModelProperty("用户发表的稿件")
    private List<Paper> paperBases;
}
